﻿using System;

namespace lazyTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Lazy<Big> lazyBig = new Lazy<Big>();
            Console.WriteLine("对象是否创建" + lazyBig.IsValueCreated);
            lazyBig.Value.Test();
            Console.WriteLine("对象是否创建" + lazyBig.IsValueCreated);

            Console.ReadKey();
        }
    }

    class Big
    {
        public Big() { }
        public void Test()
        {
            Console.WriteLine("Test....");
        }
    }
}